package com.example.controller;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Setmeal;
import com.example.entity.SetmealDish;
import com.example.service.SetmealDishService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 套餐菜品关系(SetmealDish)表控制层
 *
 * @author makejava
 * @since 2022-05-25 13:09:45
 */
@RestController
@RequestMapping("setmealDish")
public class SetmealDishController {
    /**
     * 服务对象
     */
    @Resource
    private SetmealDishService setmealDishService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SetmealDish selectOne(Long id) {
        return this.setmealDishService.queryById(id);
    }

}